using System;
using System.Collections.ObjectModel;

namespace Passageways.Modules.Rolodex
{
	/// <summary>
	/// Represents a collection of <see cref="Category"/> objects.
	/// </summary>
	[Serializable]
	public class CategoryCollection : KeyedCollection<int, Category>
    {
		/// <summary>
		/// Gets the ID of the category.
		/// </summary>
		protected override int GetKeyForItem(Category item)
		{
			return item.ID;
		}
    }
}